//
//  PurchaseModel.swift
//  TrafficViolation
//
//  Created by eaglelive on 2017/6/20.
//  Copyright © 2017年 eaglelive. All rights reserved.
//

import Foundation
import SwiftyJSON
class PurchaseModel: NSObject {
    var opUser:String = ""//办理人
    var optime:String = ""//办理时间
    var remark:String = ""//备注
    var buyerPhone:String = ""//联系电话
    var price:String = ""//价格范围
    var orderNo:String = ""//订单号
    var ostatus:String = ""//订单状态1：待处理，2：处理中，3：完成
    var buyerName:String = ""//买主姓名
    var carType:String = ""//意向车型（可多个、分割）
    var subUser:String = ""//提交人
    var subtime:String = ""//提交时间
    //初始化
    init(dict : JSON) {
        super.init()
        self.opUser = dict["opUserName"].stringValue
        self.optime = dict["optime"].stringValue
        self.remark = dict["remark"].stringValue
        self.buyerPhone = dict["buyerPhone"].stringValue
        self.price = dict["price"].stringValue
        self.orderNo = dict["orderNo"].stringValue
        self.ostatus = dict["ostatus"].stringValue
        self.buyerName = dict["buyerName"].stringValue
        self.carType = dict["carType"].stringValue
        self.subUser = dict["subUserName"].stringValue
        self.subtime = dict["subtime"].stringValue
    }
}
